package jp.co.lkg.springsmp.common.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import jp.co.lkg.springsmp.common.dao.OrderinfoDao;
import jp.co.lkg.springsmp.common.db.dto.OrderinfoDto;
import jp.co.lkg.springsmp.common.db.mapper.OrderinfoMapper;

@Component
public class OrderinfoDaoImpl implements OrderinfoDao {

	@Autowired
	private OrderinfoMapper orderinfoMapper;
	
	@Override
	public OrderinfoDto selectByPk(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		return orderinfoMapper.selectByPk(dto);
	}

	@Override
	public OrderinfoDto selectByPkForUpdate(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		return orderinfoMapper.selectByPkForUpdate(dto);
	}

	@Override
	public void insert(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		orderinfoMapper.insert(dto);
	}

	@Override
	public void updateByPk(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		orderinfoMapper.updateByPk(dto);
	}

	@Override
	public void deleteByPk(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		orderinfoMapper.deleteByPk(dto);
	}

	@Override
	public void updateIncludeNull(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		orderinfoMapper.updateIncludeNull(dto);
	}

	@Override
	public List<OrderinfoDto> select(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		return orderinfoMapper.select(dto);
	}

	@Override
	public List<OrderinfoDto> selectAllOrder(OrderinfoDto dto) {
		// TODO Auto-generated method stub
		return orderinfoMapper.selectAllOrder(dto);
	}

	@Override
	public int selectAllPage() {
		// TODO Auto-generated method stub
		return orderinfoMapper.selectAllPage();
	}

}
